import { request } from '@/service/request';
// ---------- Apply ----------

/**
 * 获取项目选项列表
 *
 * @returns 返回项目选项列表
 */
export function options() {
  return request<CommonType.Option[]>({
    url: '/cj_project/options',
    method: 'GET'
  });
}

export function getInfo(params?: Api.Home_Analysis.CjAnalysisHomeSearchDTO) {
  return request<Api.Home_Analysis.CjAnalysisHomeSamplingCountVO>({
    url: '/cj_analysis/home/samplingCount',
    method: 'GET',
    params
  });
}

export function homeUser(params?: Api.Home_Analysis.CjAnalysisHomeSearchDTO) {
  return request<Api.Home_Analysis.CjAnalysisHomeUserVO>({
    url: '/cj_analysis/home/user',
    method: 'GET',
    params
  });
}

export function homeMonthSamplingTrend(params?: Api.Home_Analysis.CjAnalysisHomeSearchDTO) {
  return request<Api.Home_Analysis.CjAnalysisHomeMonthSamplingTrendVO>({
    url: '/cj_analysis/home/monthSamplingTrend',
    method: 'GET',
    params
  });
}
